package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.BaseDepartment;
import com.yegs.jltqc.VO.BaseUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface BaseDepartmentRepository extends JpaRepository<BaseDepartment,Long> {

    BaseDepartment findBaseDepartmentByName(String name);

    Page<BaseDepartment> findBaseDepartmentByName(String name, Pageable pageable);

}
